package com.example.experiment6.presenter;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Message;
import android.widget.ImageView;

import com.example.experiment6.bean.ResultItem;
import com.example.experiment6.model.QRcodeModel;

import java.util.ArrayList;
import java.util.Base64;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Handler;
import java.util.logging.LogRecord;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

public class QRcodePresenter {
    private Bitmap bitmap;
    private QRcodeModel qRcodeModel=null;

    public QRcodePresenter(){
        qRcodeModel=new QRcodeModel();
    }
    public void getImage(String text, ImageView imageView){
        qRcodeModel.getQRcode(text,imageView);
    }
}
